﻿using System.Diagnostics;

namespace DimensionsHelper.LanguageService.Syntax;

public class MetadataSubList : SyntaxNode
{
    internal MetadataSubList(SyntaxToken sublistKeywordToken, SyntaxNode? parent) :
        base(SyntaxKinds.MetadataSublist, parent)
    {
        DeclareKeywordToken = sublistKeywordToken;
    }

    public SyntaxToken DeclareKeywordToken { get; }
}


public static partial class NodeFactory
{
    public static MetadataSubList CreateMetadataSubList(SyntaxNode? parent, SyntaxToken sublistKeywordToken)
    {
        Debug.Assert(sublistKeywordToken.IsNode(SyntaxKinds.SublistKeywordToken));
        return new MetadataSubList(sublistKeywordToken, parent);
    }
}